import axios from '../request';
import { JnviteJoin } from '../model/invite';

// 获取邀请数据
export const inviteInfo = (params: number) => {
  return axios.get<any>(`api/invite/${params}`, {});
};
// 加入
export const inviteJoin = (params: JnviteJoin) => {
  return axios.post<any>(`api/invite/join/${params.id}?password=${params.password}&name=${params.name}`, {});
};
